package com.xueke.crawler.service;

import com.xueke.crawler.service.createLeafDocRelation.BaseCreateDocRelation;
import com.xueke.crawler.service.fillDocInfo.ParseDocInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Created by weibo on 2017/5/13.
 *
 * @author weibo.qin
 * @version 2017/5/13
 */
@Service
public class SxService implements Crawle {

    @Autowired
    @Qualifier("sxInitTree")
    private Start ywInitTree;


    @Autowired
    @Qualifier("sxDocRelation")
    private BaseCreateDocRelation createDocRelation;

    @Autowired
    private ParseDocInfo parseDocInfo;

    @Override
    public void initSubjectTree() {
        ywInitTree.start();
    }

    @Override
    public void createLeafDocRelation() {
        createDocRelation.start();
    }

    @Override
    public void fillDocInfo() {
        parseDocInfo.start();
    }


    @Override
    public void updatecreateLeafDocRelation() {

    }


}
